<?php

namespace app\frontend\validator;

use think\Validate;

class SignValidator extends Validate
{
    protected $rule = [
        'email' => 'require|email',
        'password' => 'require|alphaNum|min:6|max:12',
    ];

    protected $message = [
        'email.require' => '邮箱必填',
        'email.email' => '邮箱格式错误',
        'password.require' => '密码必填',
        'password.min' => '密码长度不能小于6个字符',
        'password.max' => '密码长度不能小于6个字符'
    ];
}